<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../css/reset.css">
    <link rel="stylesheet" href="../../css/common.css">
    <!--    <link rel="stylesheet" href="../../css/swiper.min.css">-->
    <link rel="stylesheet" href="../../css/style.css">
    <style>
        .box{
            /*width: 604px;*/
            color: #ffffff;
            overflow: hidden;
            /*background-color: black;*/
        }
        .item{
          /*display: flex;*/
          /*justify-content: center;*/
          /*align-items: center;*/
            float: left;
            margin-right: 10px;
            width: 124px;
            height: 67px;
          padding-top: 15px;
            background: url("../../img/software.png") no-repeat center center;
            /*background-position: center bottom;*/
            background-size: 100% 100%;
        }
        .item:nth-child(4n){
            margin-right: 0;
        }
        .name{

            color: #ffffff;
            font-size: 16px;
            text-align: center;
            /*font-family: ddinbold;*/
        }
        .value{
          text-align: center;
            font-size: 20px;
            color: #f7f909;
        }
    </style>
</head>
<body>
  <div class="box fix"></div>
</body>
<script type="text/javascript" charset="utf-8" src="../../js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../js/common.js"></script>
<script>
    $(function () {
        getData()
        function getData(){
            $.ajax({
                type: 'GET',
                url: vars.url + 'api/WEB-SQL/websql/openInterface/SOFTWARE_MOUNT',
                data: {},
                dataType: 'json',
                success: function (data) {
                    let html = ``;
                    for (let i = 0; i < data.data.length; i++) {
                        let softItem = data.data[i];
                        console.log("softItem",softItem);
                        html += `<div class="item">
          <div class="name">${softItem.sjmType || 0}</div><div class="value">${softItem.qty || ''}</div>
        </div>`
                    }
                    $('.box').html(html)
                },
                error: function (msg) {

                }
            });
        }
        setInterval(function () {
            getData()
        },60000)
    })
</script>
</html>
